package com.itheima.bankaccountsystem;

import java.util.ArrayList;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        ArrayList<BankAccount> bankAccounts=new ArrayList<>();
        while (true){
            System.out.println("1、开户；2、登录");
            System.out.println("请输入功能码");
            int nu=s.nextInt();
            switch (nu){
                case 1:
                    bankAccounts= BankAccount.setBankAccount(bankAccounts);
                    break;
                case 2:
                    BankAccount.getCount(bankAccounts);
                    break;
                default:
                    System.out.println("请输入正确的功能编码");
                    break;
            }


        }

    }
}
